package com.itheima.controller;

import com.itheima.pojo.PageBean;
import com.itheima.pojo.QueryString;
import com.itheima.pojo.Result;
import com.itheima.servise.LogServise;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LogController {
    @Autowired
    private LogServise logServise;
    @GetMapping("/page")
    public Result page(QueryString param){
        PageBean page = logServise.page(param);
        return Result.success(page);
    }
}
